package com.sc.admin.pojo;

import java.io.Serializable;

public class SearchGoods implements Serializable{
	private Long id;
	private Long price;
	private String title;
	private String image;
	private String cat_name;
	private String sell_point;
	
	public Long getId() {
		return id;
	}
	public void setId(Long id) {
		this.id = id;
	}
	public Long getPrice() {
		return price;
	}
	public void setPrice(Long price) {
		this.price = price;
	}
	public String getTitle() {
		return title;
	}
	public void setTitle(String title) {
		this.title = title;
	}
	public String getImage() {
		return image;
	}
	public void setImage(String image) {
		this.image = image;
	}
	public String getCat_name() {
		return cat_name;
	}
	public void setCat_name(String cat_name) {
		this.cat_name = cat_name;
	}
	public String getSell_point() {
		return sell_point;
	}
	public void setSell_point(String sell_point) {
		this.sell_point = sell_point;
	}
	
	public static SearchGoods toSearchGoods(Goods g,String catName) {
		SearchGoods sg = new SearchGoods();
		sg.setId(g.getId());
		sg.setCat_name(catName);
		sg.setImage(g.getImage());
		sg.setSell_point(g.getSellPoint());
		sg.setTitle(g.getTitle());
		sg.setPrice(g.getPrice());
		return sg;
	}
}
